import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/login'
import Home from '@/components/home'
import Admin from '@/components/admin'
import ChangePwd from '@/components/changePwd'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    // {
    //   path: '/login',
    //   name: 'Login',
    //   component: Login
    // },
    {
      path:'/home',
      name:'Home',
      component: Home
    },
    {
      path:'/admin',
      name:'Admin',
      component: Admin
    },
    {
      path:'/changePwd',
      name:'ChangePwd',
      component: ChangePwd
    },
  ]
})
